<template>
  <el-card class="box-card">
    <template #header>
      <div class="card-header">
        <span>登录</span>
        <el-button link type="primary">点此注册</el-button>
      </div>
    </template>
    <!-- 登录表单 -->
    <el-form class="login_form">
      <!-- 用户输入框 -->
      <el-form-item prop="userName">
        <el-input placeholder="请输入用户名"></el-input>
      </el-form-item>
      <!-- 密码输入框 -->
      <el-form-item prop="password">
        <el-input
          type="password"
          placeholder="请输入密码"
          show-password
        ></el-input>
      </el-form-item>
      <el-form-item>
        <el-button class="button" link type="primary">忘记密码？</el-button>
      </el-form-item>
    </el-form>
    <!-- 登录按钮 -->
    <el-button class="btn" type="primary">
      <router-link to="/admin">登入</router-link>
    </el-button>
    <div class="deadline">———————— 双创中心 ————————</div>

    <!-- 管理员选择登录界面 -->
    <el-dialog title="登陆选择" width="30%" center align-center>
      <span style="text-align: center"
        >检测到您为<strong>管理员</strong>请选择您想要登入的方式</span
      >
      <template #footer>
        <div class="dialog-footer">
          <el-button type="success">项目平台</el-button>
          <el-button type="primary"> 管理系统 </el-button>
        </div>
      </template>
    </el-dialog>
  </el-card>
</template>

<style lang="scss" scoped>
.card-header {
  font-size: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fe7300;
}

.box-card {
  width: 500px;
  height: 500px;
  // margin-left: 30%;
  // margin-top: 6%;
  text-align: center;
  // background: url('../assets/images/background.jpg');
  background-size: cover;
}

.text {
  font-size: 14px;
}

.item {
  margin-bottom: 18px;
}

.login_form {
  padding-top: 20px;
  padding-left: 40px;
  padding-right: 40px;
  padding-bottom: 20px;
}
.el-form-item {
  height: 30px;
}

.btn {
  height: 40px;
  width: 150px;
}
.button {
  margin-left: 80%;
}

.deadline {
  color: #bfbfbf;
  padding-top: 100px;
}
</style>
